﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Services;

namespace SanJ.FreeCare.Encounters
{
    public class EncounterManager : DomainService
    {
        private readonly IEncounterRepository _encounterRepository;

        public EncounterManager(IEncounterRepository encounterRepository)
        {
            _encounterRepository = encounterRepository;
        }

        public Task<Encounter> CreateAsync(Encounter encounter)
        {

            return _encounterRepository.InsertAsync(encounter);
        }


    }
}
